package com.example.accessingdatajpa.service;

import com.example.accessingdatajpa.pojo.Role;
import com.example.accessingdatajpa.response.RestResponse;

import javax.transaction.Transactional;
import java.util.List;

public interface IRoleService {
    //find all role
    @Transactional
    RestResponse<List<Role>> queryAllRoles();

    //add new role
    @Transactional
    RestResponse<String> addRoles(Role role);
}
